import request from "@/request/request.js";

//设置秒杀商品信息
export const setSeckill = (gid,secKillNum)=> {
    let params = new URLSearchParams()
    params.append('gid',gid)
    params.append('secKillNum',secKillNum)
    return request.get('/seckill/seckill/setSecKillProduct',{params})
}

//秒杀商品
export const getSeckill = (gid)=> {
    let params = new URLSearchParams()
    params.append('gid',gid)
    params.append('userId',"1")
    return request.get('/seckill/seckill/startSecKillWithLua',{params})
}